package wineshop.dao;

import wineshop.dao.Impl.HotelDaoImpl;
import wineshop.dao.Impl.ManagerDaoJDBCImpl;
import wineshop.dao.Impl.RoomDaoImpl;

public class DaoFactory {

	public static Object GetDao(String type) {
		if("managerDao".equals(type)){
			return new ManagerDaoJDBCImpl();
		}

		else if ("hotelDao".equals(type)) {
			return new HotelDaoImpl();

		}
		else if ("roomDao".equals(type)) {

			return new RoomDaoImpl();

		}

		return null;
	}

}
